</html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="content-script-type" content="text/javascript">
    <script type="text/javascript" src=/static/js/jquery-1.7.1.min.js></script>
    <script type="text/javascript">
	$(document).ready(function(){
  		$("button").click(function(){
    		name = $("input.username").val();
        password = $("input.password").val();
        href = location.href;
        location.href = href + name +'/'+password;
  		});
	});
	</script>
    <title>abc</title>
</head>

<body>


  <p>Username: <input class='username' type="text" name="username" /></p>
  <p>Password: <input class='password' type="text" name="password" /></p>
  <button>登录</button>


</form>

   

</body>
</html>